<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp" %>
<%@ include file="/base/database.jsp" %>
	<%
	String depID=request.getParameter("depID");
	Connection conn=getConn();
	String sql="select * from sys_department where depID=?";
	PreparedStatement pstmt=conn.prepareStatement(sql);
	pstmt.setString(1, depID);
	ResultSet rs=pstmt.executeQuery();
	String rs_depID ="";
	String rs_depName  ="";

	if(rs.next()){
		   rs_depID =rs.getString("depID");
		   rs_depName  =rs.getString("depName");   
	}	
	   //跟踪会话的，就是相当于保存着rs_depID，rs_depName这两个的信息，返回到Department_query.jsp
	   session.setAttribute("rs_depID", rs_depID);
	   session.setAttribute("rs_depName", rs_depName);
	   
	   if(pstmt!=null){
		   pstmt.close();
	   }
	   if(conn!=null){
		   conn.close();
	   }
	   
	   process(request,response,"department_search.jsp");
	%>
			
